package com.djzz.app.common_util;

import android.app.Application;
import android.content.Context;

import com.djzz.app.common_util.net.HttpManager;

/**
 * 底层application 各种初始化
 * Created by hh on 2017/8/30.
 */

public class BaseApplication extends Application {

    public static BaseApplication context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;

        initHttp(context);

        initPush(context);
    }

    private void initHttp(Context context){
        HttpManager.init(context);
    }

    private void initPush(Context context){

    }

    public static BaseApplication getContext(){
        return context;
    }
}
